<?
require("config.php");

$location_status .= "| Enquire";
$show_backnav = "product_menu";
$menuname = array(
	"Info",
	"Pictures",
	"Color",
	"Size",
	"Specification",
	"Features",
	"Accessories",
	"Packaging",
);

$menutarget = array(
	"enquire",
	"enquire_pictures",
	"enquire_color",
	"enquire_size",
	"enquire_specification",
	"enquire_features",
	"enquire_accessories",
	"enquire_packaging",
);
$menutype = 2;

if (NULL!=$action){

   $Query = "delete from $table where id=$id Limit 1";

   myQuery($Query);


   header("location:" . $rela_path . "share/msg.php?v=3");

   exit();

}


if (!checkRecord($table,$id)){

	header("location:" . $rela_path . "share/msg.php?v=9002");
  
}

$Query = "select 
picture1,
picture2,
picture3,
picture4,
picture5,
picture6,
thumbnail 
from pro_basic where id=$id Limit 1";
$r = myQuery($Query);

$Picture1  = $r[0][0];
$Picture2  = $r[0][1];
$Picture3  = $r[0][2];
$Picture4  = $r[0][3];
$Picture5  = $r[0][4];
$Picture6  = $r[0][5];
$Thumbnail = $r[0][6];

$dir = $rela_path . $PIC_DIR . $table . "/";

require($rela_path . "inc/header.php");

?>

<!--Content Start-->
<form action="" method="post" enctype="multipart/form-data" name="form1">  
<!--hidden filed-->
<input name="Code" type="hidden" value="<?print($Code)?>">
<input name="action" type="hidden" value="delete">


  <table width="95%" border="0" align="center">
                      <tr> 
                        
      <td>&nbsp; </td>
                      </tr>
                      <tr> 
                        
      <td><br>
        <table border="0" cellspacing="0" cellpadding="2">
          <tr> 
            <td class="tdheader">Thumbnail</td>
            <td><?if ($Thumbnail) print("<img src=" . $dir. $Thumbnail . ">")?></td>
          </tr>
          <tr> 
            <td class="tdheader">Picture 1</td>
            <td><?if ($Picture1) print("<img src=" . $dir. $Picture1 . ">")?>
			<br><?loadSmallImage($Picture1,$rela_path . $PIC_DIR . "$table/")?><br></td>
          </tr>
          <tr> 
            <td class="tdheader">Picture 2</td>
            <td><?if ($Picture2) print("<img src=" . $dir. $Picture2 . ">")?><br><?loadSmallImage($Picture2,$rela_path . $PIC_DIR . "$table/")?><br></td>
          </tr>
          <tr> 
            <td class="tdheader">Picture 3</td>
            <td><?if ($Picture3) print("<img src=" . $dir. $Picture3 . ">")?><br><?loadSmallImage($Picture3,$rela_path . $PIC_DIR . "$table/")?><br></td>
          </tr>
          <tr> 
            <td class="tdheader">Picture 4</td>
            <td><?if ($Picture4) print("<img src=" . $dir. $Picture4 . ">")?><br><?loadSmallImage($Picture4,$rela_path . $PIC_DIR . "$table/")?><br></td>
          </tr>
          <tr> 
            <td class="tdheader">Picture 5</td>
            <td><?if ($Picture5) print("<img src=" . $dir. $Picture5 . ">")?><br><?loadSmallImage($Picture5,$rela_path . $PIC_DIR . "$table/")?><br></td>
          </tr>
          <tr> 
            <td height="2" class="tdheader">Picture 6</td>
            <td height="2"><?if ($Picture6) print("<img src=" . $dir. $Picture6 . ">")?><br><?loadSmallImage($Picture6,$rela_path . $PIC_DIR . "$table/")?><br></td>
          </tr>
        </table>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p></td>
                      </tr>
                    </table>
                    </form>
            <!--Content End-->
            <?
require($rela_path . "inc/footer.php");
?>
        